<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>智慧考务</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, user-scalable=no">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta name=”apple-mobile-web-app-status-bar-style” content=”default” />
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black” />
    <meta name=”apple-mobile-web-app-status-bar-style” content=”black-translucent” />
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <meta name="format-detection" content="telephone=no"/>


    <link href="${s.base}/mobile/css/weui.min.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/jquery-weui.css" rel="stylesheet" />
    <link href="${s.base}/mobile/css/zhkw.css" rel="stylesheet">
    <script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
</head>
<body>
<div class="main-content75" style="background:#f2f2f2 url(${s.base}/mobile/images/kw/topbg.jpg) top center no-repeat;background-size:100% 3.05rem;">
    <div class="content-nei">
        <div class="avatar-ctn" style="background:url(${s.base}/mobile/images/kw/avatar.jpg) top center no-repeat;background-size:cover;">
        </div>
        <div class="user-name">${name}</div>
        <div class="white-block">
            <div class="kw-notcie clearfix">
                <div class="leftlabel"><i class="cyfont">&#xe64c;</i><span>消息通知</span></div>
                <div class="kw-notcie-list">
                    <ul>
                        <li>${msg}</li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="white-block" style="padding-bottom:0.2rem;">
            <div class="cont-tit">考务管理</div>
            <div class="my-main-task clearfix">
                <ul>
                    <li id="studentattenceHandle"><img src="${s.base}/mobile/images/kw/wdzkz.png"></li>
                    <li id="studentPictureHandle"><img src="${s.base}/mobile/images/kw/yczpsc.png"></li>
                </ul>
            </div>
        </div>
        <div class="white-block marb20">
            <div class="cont-tit">基本信息</div>
            <div class="kw-signin-block" id="studentBaseMsg">
            </div>
        </div>
    </div>
</div>
</body>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fontSize.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/jquery-weui.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/fastclick.js"></script>
<script type="text/javascript" src="${s.base}/mobile/js/common.js"></script>
<script type="text/javascript">
    var applyId = '${applyId}';
    var token = '${token}';
    var picUrl ="";
    $("#studentattenceHandle").on("click",function () {
        window.location.href = "/phone/kwmanagement/studentAttence?token=${token}&applyId=${applyId}&picUrl="+picUrl;
    });

    $("#studentPictureHandle").on("click",function () {
        window.location.href = "/phone/kwmanagement/studentOnePicture?token=${token}&applyId=${applyId}";
    });
    $(function(){
        initMySocietyData();
    })

    function initMySocietyData() {
        $.fn.doGet('/phone/kwmanagement/studentSignMessageNew', {applyId:applyId,token:token}, function (result) {
            if (result.code === 0) {
                postMySocietyData(result.data);
            } else {
                $.toast('获取数据失败', "text");
            }
        });

    }
    function postMySocietyData(data) {
        picUrl = data.photoPath;
        var str = '<div class="div-line-txt">准考证号：<span>'+data.examNum+'</span></div>'+
                '<div class="div-line-txt">考试座位号：<span>'+data.stSeatNum+'</span></div>'+
                '<div class="div-line-txt">考试地点：<span>'+data.kcPlace+'</span></div>';
        $('#studentBaseMsg').html(str);

    }


</script>
</html>
